package com.swotxu.ribboninvoker.ribbon;

import com.netflix.loadbalancer.IPing;
import com.netflix.loadbalancer.Server;
import lombok.extern.slf4j.Slf4j;

/**
 * @Date: 2020/9/19 19:30
 * @Author: swotXu
 */
@Slf4j
public class MyPing implements IPing {
    @Override
    public boolean isAlive(Server server) {
        log.info("这是自定义Ping实现类：{}", server.getHostPort());
        return true;
    }
}
